﻿using GreenXi.ViewModel;
using System.Windows.Controls;

namespace GreenXi.Pages.Power
{
    /// <summary>
    /// IOView.xaml 的交互逻辑
    /// </summary>
    public partial class IOView : UserControl
    {
        public IOView()
        {
            InitializeComponent();
            DataContext = new IOViewModel();
            // 调用 GenerateButtons() 方法来生成按钮
            IOViewModel.GenerateButtons(Grid_Input, "Input");
            IOViewModel.GenerateButtons(Grid_Output, "Output");

            IOViewModel.GenerateButtons(Grid_InputVariable, "InputVariable");
            IOViewModel.GenerateButtons(Grid_OutputVariable, "OutputVariable");
        }
    }
}
